package com.miniprogram.api.service.impl;

import com.miniprogram.bean.po.CustomerPermission;
import com.miniprogram.api.mapper.CustomerPermissionMapper;
import com.miniprogram.api.service.ICustomerPermissionService;
import com.miniprogram.common.service.BaseServiceImpl;
import org.springframework.stereotype.Service;
import lombok.extern.slf4j.Slf4j;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 顾客权限表 服务实现类
 * </p>
 *
 * @author lin
 * @since 2020-04-06
 */
@Service
@Slf4j
@Transactional(rollbackFor = Exception.class)
public class CustomerPermissionServiceImpl extends BaseServiceImpl<CustomerPermissionMapper, CustomerPermission> implements ICustomerPermissionService {

    @Override
    public List<CustomerPermission> findByUserId(Integer userId){
        return this.baseMapper.findByUserId(userId);
    }
}
